#ifndef TASKTHREADREQUEST_H
#define TASKTHREADREQUEST_H

#include "taskrequest.h"
#include "misc.h"

namespace Wishmaster {

class WISHMASTER_EXPORT TaskThreadRequest : public TaskRequest
{
	Q_OBJECT
public:
	TaskThreadRequest(const ThreadId& id, const QUrl& link, const QString& msg, Connector* connector);

	ThreadId threadId() const;

signals:
	void result(TaskThreadRequest* task, const QByteArray& arr, const QString& contentType);

protected slots:
	virtual void slot_result(const RequestPtr& rq, const QByteArray& arr);

private:
	ThreadId m_threadId;
};

} // namespace Wishmaster

#endif // TASKTHREADREQUEST_H
